package com.skyline.wizard.task;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import com.skyline.wizard.indexer.Indexer;
import com.skyline.wizard.searcher.Searcher;
import com.skyline.wizard.type.SeDocType;

public class UserUpdateTask extends BaseUpdateTask {

	private static final Log logger = LogFactory.getLog(UserUpdateTask.class);

	@Value("${wizard.updateUserNewDoc}")
	private Boolean updateUserNewDoc;

	@Value("${wizard.updateUserUpdatedDoc}")
	private Boolean updateUserUpdatedDoc;

	@Value("${wizard.updateUserDeletedDoc}")
	private Boolean updateUserDeletedDoc;
	
	@Autowired
	private Indexer userIndexer;
	
	public void run() {
		super.run(logger, SeDocType.USER, updateUserNewDoc, updateUserUpdatedDoc, updateUserDeletedDoc,userIndexer);
	}
}
